﻿using System.Collections.Generic;
using POS.BusinessEntities;
using POS.DataObjects;

namespace POS.BusinessComponents
{
    public class BCArticulo
    {
        #region Declarations

        private readonly DOArticulo doEntity;
        private const int TempEmpresa = 1;         // TODO: Use the corresponding value

        #endregion

        #region Constructors

        public BCArticulo() : this(new DOArticulo()) { }

        public BCArticulo(DOArticulo doEntity)
        {
            this.doEntity = doEntity;
        }

        #endregion

        #region Methods: Public

        public virtual IList<BEArticuloBusqueda> GetList(string filter, SearchField searchBy)
        {
            return doEntity.GetList(TempEmpresa, filter, searchBy);
        }
        

        #endregion
    }
}
